// import logo from './logo.svg';
import { ConfigProvider } from "antd";
import AppRoutes from "./routes/AppRoutes";
// import './App.css';
import zhCN from "antd/locale/zh_CN";
// for date-picker i18n
import "dayjs/locale/zh-cn";

import { Provider } from 'react-redux'; // 提供 Store
import { store } from '../src/store';

function Welcome(props) {
  return (
    <ConfigProvider locale={zhCN}>
      {/* <div className="App"> */}
      <Provider store={store}>
      <AppRoutes /> {/* 引入路由配置 */}
      </Provider>
      {/* </div> */}
    </ConfigProvider>
  );
}

export default Welcome;
